import request from '@/utils/request'
let baseUrl =
  process.env.NODE_ENV === 'production' ? '/api/riskTrial' : '/riskTrial'
export const roserList = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/name-list/index',
    method: 'post',
    data
  })
export const add = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/name-list/store',
    method: 'post',
    data
  })
export const update = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/name-list/update',
    method: 'post',
    data
  })
// 名单上传
export const upload = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/name-list/import',
    method: 'post',
    data
  })
export const uploadURL = baseUrl + '/std/name-list/import'
// export const downloadURL = baseUrl + '/files/name-list-template.xlsx'
export const downloadURL = baseUrl + '/files/名单管理示例模板.xlsx'
